Developer Documentation

QuickTime 4 API Documentation

Programming With QuickTime VR

| Previous | Chapter Contents | Chapter Top | Next |

Constraint Types

The kind parameter of the QTVRGetViewingLimits , QTVRGetConstraints , QTVRSetConstraints , and QTVRWrapAndConstrain functions specifies the type of angle or other feature of which you want to determine or set the constraints (that is, the limits of the current node). You can pass one of these values in that parameter:

enum {
    kQTVRPan                                        = 0,
    kQTVRTilt                                       = 1,
    kQTVRFieldOfView                                = 2,
    kQTVRViewCenterH                                = 4,
    kQTVRViewCenterV                                = 5
};

Constant descriptions

kQTVRPan
The pan angle. The associated value is of type float .
kQTVRTilt
The tilt angle. The associated value is of type float .
kQTVRFieldOfView
The field of view. The associated value is of type float .
kQTVRViewCenterH
The horizontal view center. This value is valid only for the  QTVRWrapAndConstrain function, which returns the horizontal view center constrained in the current field of view. The minimum and maximum values of the horizontal view center change for every field-of-view setting. If the field of view of the object is the maximum field of view, the object's horizontal view center is constrained to a single value that is the horizontal center of the object image in display coordinates (rounding down any fractional pixels).
kQTVRViewCenterV
The vertical view center. This value is valid only for the QTVRWrapAndConstrain function, which returns the vertical view center constrained in the current field of view. The minimum and maximum values of the vertical view center change for every field-of-view setting. If the field of view of the object is the maximum field of view, the object's vertical view center is constrained to a single value that is the vertical center of the object image in display coordinates (rounding down any fractional pixels).

© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |